package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.FeedbackService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuwb 2016-07-20 08:55
 */
@Service
public class FeedbackServiceImpl extends BaseService implements FeedbackService {

    /**
     * 功能:新增 - 意见反馈
     */
    public void insertFeedback (SuperRecordModel SRModel) {
        getSqlSession().insert("FFeedbackMapper.insertFeedback",SRModel);
    }

    /**
     * 功能:修改 - 意见反馈
     */
    public void updateFeedback(SuperRecordModel SRModel){
        getSqlSession().update("FFeedbackMapper.updateFeedback",SRModel);
    }

    /**
     * 功能:列表 - 意见反馈
     */
    public List<SuperRecordModel> findFeedbackList(SuperRecordModel SRModel){
        return getSqlSession().selectList("FFeedbackMapper.findAllFeedback",SRModel);
    }

}
